#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
int n;
int main()
{
    cin >> n;
    int res = 0, x;
    for (int i = 0; i < n; i++)
    {
        cin >> x;
        res ^= x;
    }
    if (res) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}